<template>
  <ComponentContainerProperty v-model="formData.style">
    <!-- 表单 -->
    <el-form label-width="80px" :model="formData" class="m-t-8px">
      <el-form-item label="活动图标" prop="iconActivity">
          <icon-select v-model="formData.iconActivity"/>
      </el-form-item>
      <el-form-item label="套餐图标" prop="iconBundle">
          <icon-select v-model="formData.iconBundle"/>
      </el-form-item>
      <el-form-item label="设置图标" prop="iconSetting">
          <icon-select v-model="formData.iconSetting"/>
      </el-form-item>
      <el-form-item label="背景颜色" prop="backgroundColor">
        <ColorInput v-model="formData.style.bgColor" />
      </el-form-item>
    </el-form>
  </ComponentContainerProperty>
</template>
<script setup lang="ts">
import { usePropertyForm } from '@/components/DiyEditor/util'
import { StoreManagerProperty } from './config'

/** 搜索框属性面板 */
defineOptions({ name: 'SearchProperty' })

const props = defineProps<{ modelValue: StoreManagerProperty }>()
const emit = defineEmits(['update:modelValue'])
const { formData } = usePropertyForm(props.modelValue, emit)
</script>
<style scoped lang="scss"></style>